package com.fourth_groups.shopping121store.ui.category.customview;

import android.content.Context;
import android.view.View;
import android.widget.ListView;

import com.fourth_groups.shopping121store.R;

public class GoodsContentPage implements GoodsSnapPageLayout.GoodsSnapPage {
	private ListView mlv;
	private Context context;
	private GoodsScrollView goodsScrollView;
	private View rootView = null;

	public GoodsContentPage(Context context, View rootView) {
		this.context = context;
		this.rootView = rootView;
		this.goodsScrollView = (GoodsScrollView) this.rootView
				.findViewById(R.id.content_scrollview);
	}

	@Override
	public View getRootView() {
		return rootView;
	}

	@Override
	public boolean isAtTop() {

		if(goodsScrollView.getScrollY() == 0){
				return true;
		}
		return false;
	}

	@Override
	public boolean isAtBottom() {
		return false;
	}

}
